/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

var fieldName = ['name', 'shortName', 'pointType', 'pointType2', 'date', 'voltageLevelName', 'maxVoltage', 'maxVoltageTime', 'minVoltage', 'minVoltageTime', 'avgVoltage', 'defaultTotalTime', 'aboveUpperLimitMin', 'aboveUpperLimitNumber', 'underLowerLimitMin', 'underLowerLimitNumber', 'totalRunMin', 'rate', 'dataYear', 'dataMonth', 'dataDay',
    , 'pointId', 'rn', 'yStatus','upperLimit',"lowerLimit","dateStr","id"];
var fieldLabel = ['测点名称', '公司名称', '测点类别', '电网类别', '日期', '电压等级<br/>(kv)', '最高电压', '最高电压时间', '最低电压', '最低电压时间', '平均电压', '故障<br/>时间（分钟）', "超上限<br/>时间（分钟）", "超上限<br/>次数", "超下限<br/>时间（分钟）", "超下限<br/>次数", '总时间<br/>（分钟）', '合格率（%）'];
var columns = [
    {header: '序号', dataIndex: 'rn', width: 80},
    {header: 'PointId', dataIndex: 'pointId', hidden: true},
    {header: fieldLabel[0], sortable: true, dataIndex: fieldName[0]},
    {header: fieldLabel[1], width: 80, sortable: true, dataIndex: fieldName[1]},
    {header: fieldLabel[2], width: 60, sortable: true, dataIndex: fieldName[2]},
    {header: '在线', width: 60, sortable: true, dataIndex: 'isOffline'},
    {header: fieldLabel[3], width: 60, sortable: true, dataIndex: fieldName[3]},
    {header: fieldLabel[5], width: 80, sortable: true, dataIndex: fieldName[5]},
    {header: '电压上限', width: 100, sortable: true, dataIndex: 'upperLimit', xtype: 'numbercolumn', format: '0.000', align: 'right'},
    {header: '电压下限', width: 100, sortable: true, dataIndex: 'lowerLimit', xtype: 'numbercolumn', format: '0.000', align: 'right'},
    {header: fieldLabel[17], width: 100, sortable: true, dataIndex: 'rate', align: 'right', format: '0.000'},
    {header: fieldLabel[6], width: 80, sortable: true, dataIndex: fieldName[6], xtype: 'numbercolumn', align: 'right'},
    {header: fieldLabel[7], width: 100, sortable: true, dataIndex: fieldName[7], xtype: 'datecolumn', format: 'Y-m-d h:i:m'},
    {header: fieldLabel[8], width: 80, sortable: true, dataIndex: fieldName[8], xtype: 'numbercolumn', align: 'right'},
    {header: fieldLabel[9], width: 100, sortable: true, dataIndex: fieldName[9], xtype: 'datecolumn', format: 'Y-m-d h:i:m'},
    {header: fieldLabel[10], width: 80, sortable: true, dataIndex: fieldName[10], align: 'right'},
    {header: fieldLabel[11], width: 80, sortable: true, dataIndex: fieldName[11], align: 'right'},
    {header: fieldLabel[12], width: 80, sortable: true, dataIndex: fieldName[12], align: 'right'},
    {header: fieldLabel[13], width: 50, sortable: true, dataIndex: fieldName[13], align: 'right'},
    {header: fieldLabel[14], width: 80, sortable: true, dataIndex: fieldName[14], align: 'right'},
    {header: fieldLabel[15], width: 50, sortable: true, dataIndex: fieldName[15], align: 'right'},
    {header: fieldLabel[16], width: 80, sortable: true, dataIndex: fieldName[16], align: 'right'},
    {header: "日期", width: 80, sortable: true, dataIndex: "dateStr", align: 'center'}
];